<!--#include file="./top.asp"-->
<%
dim rs_rpt_student,str_rpt_student
set rs_rpt_student = server.CreateObject("ADODB.Recordset")
str_rpt_student = "select * from student where stu_number = '" & request.QueryString("stu_id") & "'"
rs_rpt_student.open str_rpt_student, conn,1,3

if rs_rpt_student.eof then
	rs_rpt_student.addnew
	rs_rpt_student.fields("stu_id") = request.QueryString("stu_id")
	rs_rpt_student.update
	rs_rpt_student.close
	rs_rpt_student.open str_rpt_summary, conn,1,3
end if

for i = 1 to rs_rpt_student.fields.count - 1
'	response.Write "rs_rpt_student_" & i & " = " & request.Form("rs_rpt_student_" & i) & "<br />"
	rs_rpt_student.fields(i) = request.Form("rs_rpt_student_" & i)
next
rs_rpt_student.update
%>



</body>
</html>
<%
rs_rpt_student.close
set rs_rpt_student = nothing
call CloseConn()

response.Redirect("./rpt_student.asp?stu_id="& request.QueryString("stu_id"))
%>